# -*- coding: utf-8 -*-
import sys
import logging


LOG_FORMAT = '[%(asctime)s][%(role)s][%(mo)s][%(instance)s][%(cid)s]' \
             '<%(process)d:%(thread)d>(%(levelname)s)' \
             '(%(filename)s#%(lineno)d): %(message)s'
LOG_DATE_FORMAT = '%Y-%m-%d %H:%M:%S %Z'
LOG_LEVEL = logging.INFO

CONSOLE = logging.StreamHandler(sys.stdout)
FORMATTER = logging.Formatter(LOG_FORMAT, LOG_DATE_FORMAT)
CONSOLE.setFormatter(FORMATTER)
CONSOLE.setLevel(LOG_LEVEL)
LOGGER = logging.Logger(__name__)
LOGGER.addHandler(CONSOLE)


logging.debug("hello, world")